package com.jorado.etl.taskhandles;

import com.jorado.etl.config.RemoteSettings;
import com.jorado.search.core.task.BaseHandler;
import org.springframework.context.annotation.Description;

/*
 * Created by len.zhang on 2018/4/17.
 *
 */
@Description("手动操作监听")
public final class ManualOperateHandler extends BaseHandler {

    @Override
    protected void exec(Object... args) {

        if (RemoteSettings.word2vecManualTrain()) {
            new Word2vecEtlHandler().exec();
            new Word2vecTrainHandler().exec();
        }

        if (RemoteSettings.fastTextManualTrain()) {
            new FastTextEtlHandler().exec();
            new FastTextTrainHandler().exec();
        }

    }
}
